/*
 * @Description:
 * @Version: 1.0
 * @Autor: sun
 * @Date: 2021-02-18 15:00:15
 */
import Vue from 'vue';
import App from './App.vue';
import './registerServiceWorker';
import router from './router';
import store from './store';
import axios from 'axios';

import Vant from 'vant';
import 'vant/lib/index.css';




Vue.prototype.$http = axios;
router.afterEach((to, from, next) => {
    window.scrollTo(0, 0);
});

require('./assets/js/nbd_count.js'); // 百度统计
import '@/assets/css/reset.css';
Vue.config.productionTip = false;

// axios.defaults.baseURL = process.env.NODE_ENV == 'development' ? '' : 'http://www.nbd.com.cn/news-gateway';
new Vue({
    router,
    store,
    render: (h) => h(App)
}).$mount('#app');